﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace MSSClient.Model
{

    [DataContract]
    [Serializable]
    public class LoginData
    {
        [DataMember]
        public String code;
        [DataMember]
        public Data data;
        [DataMember]
        public String message;
        [DataMember]
        private string loginName;
        public string LoginName
        {
            get { return loginName; }
            set { loginName = value; }
        }
        [DataMember]
        private string pwd;
        public string Pwd
        {
            get { return pwd; }
            set { pwd = value; }
        }

        [DataContract]
        [Serializable]
        public class Data
        {
            [DataMember]
            public String ftpId;
            [DataMember]
            public String ftpIp;
            [DataMember]
            public String rootDir;//ftp服务器根目录，每个服务器的根目录不一样
            [DataMember]
            public String ftpPassword;
            [DataMember]
            public int ftpPort;
            [DataMember]
            public String ftpUserName;
            [DataMember]
            public String name;
            [DataMember]
            public String provinceCode;
            [DataMember]
            public String provinceName;
            [DataMember]
            public String ticketId;
            [DataMember]
            public int ticketValidTime;
        }

        //public static explicit operator LoginData(object v)
        //{
        //    throw new NotImplementedException();
        //}
    }


}
